var handleCategory = function(id, typeId) {
	var typeId = DWRUtil.getValue(typeId);
	var name = DWRUtil.getValue(name);
	if(typeId == "-" || typeId == "" || typeId == null) {
		DWRUtil.removeAllOptions(id);
		DWRUtil.addOptions(id, ['-']);
	} else {
		tourCategoryService.queryCategoryVO(typeId, name, {
			callback : function(data) {
				DWRUtil.removeAllOptions(id);
				if(data.length != 0) {
					DWRUtil.addOptions(id, data, "name", "name");
				} else {
					DWRUtil.addOptions(id, ['-']);
				}
			}
		});
	}
};

var doSubmit = function(form) {
	$(form).submit();
}
